{% extends "base.html" %}
{% load i18n %}

{% block nav %}
{% endblock %}

{% block content %}
{% if haveCert %}
<div class="section"><h3 class="form-title">{% trans "Name" %}</h3></div>

{% if peerid %}
<div class="section-item"> <label>{% trans "User:"%}</label> <p>{{domain}}</p>
</div>
<div class="section-item"> <label>{% trans "PeerID:"%}</label> <p>{{peerid}}</p> </div>
{% else %}
<div class="section-item"> <label>{% trans "Domain:"%}</label> <p>{{domain}}</p>
</div>
{% endif %}

<div class="section"><h3 class="form-title">{% trans "Public Cert" %}</h3></div>

<div class="section-item"><pre>{{cert}}</pre></div>

{% if havePrivateKey %}
<div class="section"><h3 class="form-title">{% trans "Private Key" %}</h3></div>
<div class="section-item"><pre>{{key}}</pre></div>
{% endif %}
{% else %}
<div class="section"><h3 class="form-title">{% trans "Error" %}</h3></div>
<div class="section-item"><label>{% trans "Error:"%}</label> <p>{% trans "Can not find certificate: " %}{{id}}</p> </div>
{% endif %}
{% endblock %}
